package com.zmq.dao;

import com.zmq.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface IUserDao {

    int deleteByPrimaryKey(Integer id);

    int insert(UserBean record);

    int insertSelective(UserBean record);

    UserBean selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserBean record);

    int updateByPrimaryKey(UserBean record);

    void addUser(UserBean user);

    void deleteUserById(Integer id);

    void updateUserByUsername(UserBean user);

    UserBean queryUserByUsername(String username);

    List queryUserAll(UserBean userBean);
}
